package com.cn.server.handler.mobile;

import com.cn.common.core.model.Request;
import com.cn.common.core.model.Result;
import com.cn.common.core.session.Session;
import com.cn.server.msg.MessageHandler;
import com.cn.server.module.login.handler.UserHandler;
import com.cn.server.module.login.handler.UserHandlerImpl;

/**
 * 登录handler
 */
public class LoginHandler implements MessageHandler {

    private UserHandler userHandler = new UserHandlerImpl();

    @Override
    public Result<?> handle(Request packet, Session session) {
        return userHandler.login(session, packet.getData());
    }
}
